//
//  MCDateFormatter.h
//  HMmall
//
//  Created by 李李善 on 16/6/27.
//  Copyright © 2016年 吉青. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NSDate+Exts.h"
#define DATEFORMA [MCDateFormatter shareDateFormatter]

@interface MCDateFormatter : NSObject
+ (MCDateFormatter  *)shareDateFormatter;

@property (nonatomic,strong,readonly) NSDateFormatter *formatter;

+ (NSDateFormatter *)dateFormatter;
+ (NSString *)currentDateStringWithFormat:(NSString *)format;
+ (NSString *)publicTimeStringByTimeInterval:(NSNumber *)timeInterval ;
- (NSDate *)dateFromNumber:(NSNumber *)number;
- (NSString *)stringFromNumber:(NSNumber *)number;
- (NSString *)dateWithInterval:(NSNumber *)interval Format:(NSString *)format;
- (NSString *)dateWithTimer:(NSTimeInterval)timer Format:(NSString *)format;
- (NSTimeInterval)timeIntervalWithTimer:(NSString *)timer Format:(NSString *)format;
@end


@interface NSDateFormatter (date)
- (NSString *)stringFromNumber:(NSNumber *)number;

@end
